package hngc.com;

import java.util.Scanner;

public class Box13 {
    public static void main(String[] args) {
        int x=0;
        int y=0;
        int a=-1;
        int b=-1;
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入x值");
        while (scanner.hasNext()){
            try {
                x=scanner.nextInt();
                System.out.println("输入y值");
                y=scanner.nextInt();
                break;
            }catch (Exception e){
                System.out.println("请按要求输入x，y");
                return;
            }
        }
        if(x>0||y>0) {
            a = 10;
            if(x<10||y<10) {
                b=0;
            }
        }else {
            if(x<10||y<10) {
                b=0;
            }
        }
        System.out.println("a="+a);
        System.out.println("b="+b);
        scanner.close();
    }
}
